package com.ropeok.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class Role {
    @NotNull(message = "请输入角色id")
    private Integer roleid;
    @NotBlank(message = "请输入角色名字")
    private String  rolename;

    @Override
    public String toString() {
        return "Role{" +
                "roleid=" + roleid +
                ", rolename='" + rolename + '\'' +
                '}';
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }
}
